
package com.qf.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orders {
	  
	  private String oid;
	  private Date ordertime;
	  private double total;
	  private int state=0;
	  private String address;
	  private String name;
	  private String telephone;
	  private User user;
	  private List<OrderItem> list = new ArrayList<>();
	public String getOid() {
	
		return oid;
	}
	public void setOid(String oid) {
	
		this.oid = oid;
	}
	public Date getOrdertime() {
	
		return ordertime;
	}
	public void setOrdertime(Date ordertime) {
	
		this.ordertime = ordertime;
	}
	public double getTotal() {
	
		return total;
	}
	public void setTotal(double total) {
	
		this.total = total;
	}
	public int getState() {
	
		return state;
	}
	public void setState(int state) {
	
		this.state = state;
	}
	public String getAddress() {
	
		return address;
	}
	public void setAddress(String address) {
	
		this.address = address;
	}
	public String getName() {
	
		return name;
	}
	public void setName(String name) {
	
		this.name = name;
	}
	public String getTelephone() {
	
		return telephone;
	}
	public void setTelephone(String telephone) {
	
		this.telephone = telephone;
	}
	public User getUser() {
	
		return user;
	}
	public void setUser(User user) {
	
		this.user = user;
	}
	public List<OrderItem> getList() {
	
		return list;
	}
	public void setList(List<OrderItem> list) {
	
		this.list = list;
	}
	@Override
	public String toString() {
		return "Orders [oid=" + oid + ", ordertime=" + ordertime + ", total=" + total + ", state=" + state
				+ ", address=" + address + ", name=" + name + ", telephone=" + telephone + ", user=" + user + ", list="
				+ list + "]";
	}
	public Orders(String oid, Date ordertime, double total, int state, String address, String name, String telephone,
			User user, List<OrderItem> list) {
		super();
		this.oid = oid;
		this.ordertime = ordertime;
		this.total = total;
		this.state = state;
		this.address = address;
		this.name = name;
		this.telephone = telephone;
		this.user = user;
		this.list = list;
	}
	public Orders() {
		
		super();
		//TODO 
			
	}
	
	  
	
	  

}

	